<?php
/**
 * Created by PhpStorm.
 * User: chenxiaogang
 * Date: 2017/11/15
 * Time: 下午3:04
 */

namespace User\Model;


use Common\Model\CommonModel;

class WareHouse extends CommonModel
{
    protected $connection = 'DB_CONFIG2';
    protected $trueTableName = 'warehouse';

    /**
     * @use          [得到用户的金额情况]
     * @author       chenxiaogang
     * @param $user_id
     * @return array
     */
    public function getWareHouse($user_id)
    {
        $data = $this->where( [ 'user_id' => $user_id ] )->find();
        return $data;
    }

}